﻿namespace ChildPhotosManager.Core.Dtos;

public class PhotoViewModel
{
    public int Id { get; set; }
    public string FileName { get; set; } = string.Empty;
    public string StoredFileName { get; set; } = string.Empty;
    public string ContentType { get; set; } = string.Empty;
    public long FileSize { get; set; }
    public DateTime UploadTime { get; set; }
    public string? Description { get; set; }
    public string? Category { get; set; }
    public string FileSizeDisplay => $"{FileSize / 1024:F1} KB"; // 显示为KB
}